body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
	min-height: 100vh; /* 至少占据一屏的高度 */
/*   background-image: url("../img/preview.jpg"); */
    background-size: cover;
    background-attachment: fixed;
	background-position: center;
    color: #333;
    line-height: 1.6;
}


header {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1em;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin: 1em 0;
}

nav ul li {
    margin: 0 1em;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5em 1em;
    border-radius: 5px;
    transition: background 0.3s, transform 0.3s;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

main {
    padding: 2em;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    margin: 2em auto;
    max-width: 1200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

a {
    text-decoration: none; /* 去掉超链接的下划线 */
}


section {
    margin-bottom: 2em;
}

section h2 {
    font-size: 2em;
    margin-bottom: 1em;
    color: #555;
}

section p {
    margin-bottom: 1em;
    font-size: 1.1em;
}

.profile-img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    display: block;
    margin-bottom: 1em;
}

#contact-form label {
    display: block;
    margin-top: 1em;
}

#contact-form input, #contact-form textarea {
    width: 100%;
    padding: 0.5em;
    margin-top: 0.5em;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#contact-form button {
    margin-top: 1em;
    padding: 0.5em 1em;
    border: none;
    background: #333;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

#contact-form button:hover {
    background: #555;
    transform: scale(1.05);
}

#projects-list{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1em;
}


.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: cover;
    vertical-align: middle;
    margin-right: 0.5em;
}

.icon-email {
    background-image: url('../img/email.jpg');
}

.icon-phone {
    background-image: url('../img/phone.jpg');
}

.icon-location {
    background-image: url('../img/location.jpg');
}


/* 新增的样式，用于二级菜单 */
.dropdown-content {
	display: none;
	position: absolute;
	background-color: #f9f9f9;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	z-index: 1;
}

.dropdown-content a {
	color: black;
	padding: 12px 16px;
	text-decoration: none;
	display: block;
}

.dropdown-content a:hover {background-color: #f1f1f1}

.dropdown:hover .dropdown-content {
	display: block;
}



.video-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: -1; /* 将视频放在所有内容的后面 */
}
 video {
	width: 100%;
	height: 100%;
	object-fit: cover; /* 确保视频填满容器，保持宽高比例 */
	position: absolute;
	top: 0;
	left: 0;
}


footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 0.5em 0;
	position: fixed;
    width: 100%;
    bottom: 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
}

footer p {
    margin: 0 auto;
}






